package com.lovo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lovo.dao.GoodsMapper;
import com.lovo.vo.AddBreakage;
import com.lovo.vo.Allocate;
import com.lovo.vo.Goods;
import com.lovo.vo.Goods_Type;
import com.lovo.vo.Warning;

@Service
@Transactional
public class GoodsService {
	@Autowired
	GoodsMapper good;

	public List<Goods> getAllMessage() {
		return good.getAllMessage();

	}

	public AddBreakage findById(String id) {
		return good.findById(id);

	}
	
	   public List<Warning> getWarningAll(Warning sec){
		   return good.getWarningAll(sec);
	   }
	   public int getBySum(Warning sec){
		   return good.getByPageGoods(sec);
	   }
	   public List<Allocate> getByAllocate(Allocate all){
		   return good.findByAllocate(all);
	   }
	   public int getByAllocateAll(Allocate all){
		   return good.findByAllocateAll(all);
	   }

}
